package 构造器模式;

public class Director {

    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public Product build(String field,String field2,String field3) {
        builder.field1(field);
        builder.field2(field2);
        builder.field3(field3);
        return builder.createProduct();
    }
}
